import request from '@/utils/request'

// 查询测点信息列表
export function listMeasurpoint(query) {
  return request({
    url: '/basic/measurpoint/list',
    method: 'get',
    params: query
  })
}

// 查询测点信息详细
export function getMeasurpoint(id) {
  return request({
    url: '/basic/measurpoint/' + id,
    method: 'get'
  })
}

// 新增测点信息
export function addMeasurpoint(data) {
  return request({
    url: '/basic/measurpoint',
    method: 'post',
    data: data
  })
}

// 修改测点信息
export function updateMeasurpoint(data) {
  return request({
    url: '/basic/measurpoint',
    method: 'put',
    data: data
  })
}

// 删除测点信息
export function delMeasurpoint(id) {
  return request({
    url: '/basic/measurpoint/' + id,
    method: 'delete'
  })
}
